class Task {
     static belongsTo = Project  
     static hasMany = [issues: Issue]  
   
     // fields  
     Project project  
     String name
	 User createdBy
     Date dateCreated

   
     // override for nice display  
     String toString() {  
         return "${name}"  
     }  
   
     // constraints  
     static def constraints = {  
         name()  
         project()  
         issues()  
     }  
}
